<?php


namespace App\Constants\Model;


use Hyperf\Validation\Rule;

class ConfigOther
{
    //倒计时自动打款
    const CONFIG_AUTO_PAYMENT_NAME = 'autoPayment';

    //抽成比例
    const CONFIG_COMMISSION_PERCENT_NAME = "commissionPercent";

    //客服电话
    const CONFIG_SERVICE_PHONE_NAME = "servicePhone";


    const TEMPLATES = [
        self::CONFIG_AUTO_PAYMENT_NAME => [
            'default_value' => 0,
            'attribute_list' => [0, 1],
        ],
        self::CONFIG_COMMISSION_PERCENT_NAME => [
            'default_value' => 15,
            'attribute_list' => []
        ],
        self::CONFIG_SERVICE_PHONE_NAME => [
            'default_value' => '',
            'attribute_list' => []
        ]
    ];

    const INIT_CONFIG_LIST = [
        self::CONFIG_AUTO_PAYMENT_NAME,
        self::CONFIG_COMMISSION_PERCENT_NAME,
        self::CONFIG_SERVICE_PHONE_NAME
    ];
}